package com.day09.school;

public class TeacherTest {
    public static void main(String[] args) {
//        Teacher teacher = new LangTeacher();// 创建对象时多态
//        teacher.shangKe();
        Master mas = new Master();
        LangTeacher lt = new LangTeacher();
        MathTeacher mt = new MathTeacher();
        EnglisthTeacher et = new EnglisthTeacher();
        Teacher tt = new MathTeacher();
        mas.sendTeacher(tt);// 传参多态
    }
}
